package cn.wolfcode.trip.base.util;

import lombok.Getter;
import lombok.Setter;

@Getter@Setter
public class JSONResult {



    private boolean success = true;

    //失败时候返回的信息
    private String msg;

    //成功返回的字段值
    //如果success是true,取Object字段的值,false就取msg
    private Object result;

    public JSONResult mark(String msg){
        this.success = false;
        this.msg = msg;
        return this;
    }
}
